<%= form_for @store_order, url: api_store_orders_path, html: {class: "js-to-create-order-form"} do |f| %>
  <%= f.hidden_field :phone_number, value: @customer.phone_number %>
  <%= f.hidden_field :user_name, value: @customer.name %>
  <%= f.hidden_field :company_name, value: @customer.company_name %>
  <%= f.hidden_field :address, value: @customer.company_address %>
  <%= f.hidden_field :store_id, value: @store_id %>
  <div class="store_orders_new cart_index" myApp="STORE_ORDERS_NEW">
    <div id="content" class="w">
      <%= notice %>
      <div class="checkout-tit">
          <span class="tit-txt">核对订单信息</span>
      </div>
      <div class="checkout-steps">
          <div class="step-tit">
              <h3>收货人信息</h3>
          </div>
      </div>
      <div class="order_basic_info">
        <div class="name">
          <span> <%= @customer.company_name %></span>
          <span class="order_address"> <%= @customer.company_address %></span>
          <span class="order_phone_number"> <%= @customer.phone_number %></span>
        </div>
      </div>

      <div class="order_items">
        <div class="order_items_title">
            <div class="oder_items_title_second">
                <h3>订单明细</h3>
            </div>
        </div>
      </div>

      <div class="order_item_list" id="">
    		<% @cart_items.each_with_index do |item, i| %>
    			<div class="item-form">
    				<%= render "item", item: item, i: i %>
    			</div>
    		<% end %>
    	</div>

      <div class="cart_items_foot">
        <div class="order_items">
          <div class="order_items_title">
              <div class="order_settlement">
                  <h3>订单备注</h3>
              </div>
          </div>
        </div>

        <div class="order_text">
          <div class="form-group">
            <%= f.text_area :remark, class: "form-control", rows: "3" %>
        	</div>
        </div>

        <%= render "settlement" %>
      </div>
    </div>
  </div>
  <% end %>
